<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div id="app"></div>
    <!-- 依次引入react核心依赖、react DOM依赖、babel依赖(注意引入顺序)-->
    <script src="./react.development.js"></script>
    <script src="./react-dom.development.js"></script>
    <script src="./babel.min.js"></script>
    <!-- JSX基本语法 -->
    <script type="text/babel">
      // 声明式UI：将一段视图，直接赋值给变量
      const a = (
        <div>
          <h1>静夜思</h1>
          <p>床前明月光，疑是地上霜</p>
          <p>举头望明月，低头思故乡</p>
        </div>
      )

      // 渲染到页面中
      ReactDOM.render(a, document.getElementById('app'))
    </script>
  </body>
</html>
